﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCell.RealmServer.Content;
using WCell.RealmServer.NPCs;
using WCell.Util;
using WCell.Util.Variables;
using WCell.Core.Initialization;

namespace WCell.RealmServer.Entities
{
	public static class UnitMgr
	{
		[NotVariable]
		public static UnitModelInfo[] ModelInfos = new UnitModelInfo[24000];
		
		[Initialization(InitializationPass.First)]
		public static void InitModels()
		{
			ContentHandler.Load<UnitModelInfo>();
		}

		public static UnitModelInfo GetModelInfo(uint displayId)
		{
			return ModelInfos.Get(displayId);
		}
	}
}
